Tooling for quantum red tea

Exception classes for quantum red tea.

exception qredtea.tooling.qredteaexceptions.QRedTeaAbelianSymError[source]

Errors induced by symmetries.

exception qredtea.tooling.qredteaexceptions.QRedTeaBackendLibraryImportError[source]

Errors induced by not being able to import a library.

exception qredtea.tooling.qredteaexceptions.QRedTeaDataTypeError[source]

Errors induced by device conversion of data types.

exception qredtea.tooling.qredteaexceptions.QRedTeaDeviceError[source]

Errors induced by device selection, conversion.

exception qredtea.tooling.qredteaexceptions.QRedTeaEmptyTensorError[source]

Erros induced by empty tensors, parsed or generated.

exception qredtea.tooling.qredteaexceptions.QRedTeaError[source]

Generic error for the qredtea library.

exception qredtea.tooling.qredteaexceptions.QRedTeaLinkError[source]

Errors induced by problems with the link.

exception qredtea.tooling.qredteaexceptions.QRedTeaRankError[source]

Errors induced by passing the wrong rank of a tensor.

qredtea.tooling.qredteaexceptions.assert_module_available(*args, **kwargs)[source]

Function to punish those that try to use JAX without installing it.

qredtea.tooling.qredteaexceptions.get_error_tensor_class(error_function)[source]

Return a class that gives errors when any of the class/static methods are called